﻿<%@ Page Title="Seguro Vehicular" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmSeguroVehicularActualizar.aspx.cs" Inherits="Crosland.Automotriz.Web.Minorista.wFrmSeguroVehicularActualizar" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

    <script type="text/javascript">

       function MostrarPopupAdjuntar() {
           popupAdjuntar.Show();
       }

       function MostrarPopupConsultar() {
           popupConsulta.Show();
       }

        function MostrarAlerta() {
            popupErrores.Show();
        }

</script>

    <div style="padding: 15px">
    


          <div class="main-header" style="width:100%;">
            <div class="main-titulo" style="text-align: left">Nuevo Trámite</div>
          </div> 
          <table width="100%" 
              style="border-style: none none solid none; border-width: 0px 0px 1px 0px; border-bottom-color: #CCCCCC">
                                    <tr>
                                        <td width="105" style="height: 6px">
                                        </td>
                                        <td style="height: 6px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="105" style="height: 33px">
                                            <dx:ASPxButton ID="btnGrabar" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Grabar" 
                                                Width="100px" onclick="btnGrabar_Click" Enabled="False">
                                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Desea guardar los datos?');
}" />
                                                <Image Url="~/Images/save_16.gif">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td style="height: 33px">
                                <dx:ASPxButton ID="btnSalir" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="btnSalir_Click" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                    Width="100px">
                                    <Image Url="~/Images/logout.png">
                                    </Image>
                                </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
          <table width="100%">
              <tr>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td colspan="2">
                      <table width="100%">
                          <tr>
                              <td style="width: 118px">
                                <asp:Label ID="Label9" runat="server" Text="N° Comprobante:" Font-Bold="True" 
                                    ForeColor="Black"></asp:Label>
                              </td>
                              <td style="width: 154px">
                                            <dx:ASPxTextBox ID="txtFacturaConsultar" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Height="30px" MaxLength="20" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Width="150px" Enabled="False">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                              <td style="width: 59px">
                                            <dx:ASPxButton ID="btnConsultarFacturas" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Height="30px" HorizontalAlign="Center" 
                                                onclick="btnConsultarFacturas_Click" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="40px">
                                                <Image Url="~/Images/three_dots.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                              <td style="width: 61px">
                                <asp:Label ID="Label10" runat="server" Text="N° Folio:" Font-Bold="True" 
                                    ForeColor="Black" Visible="False"></asp:Label>
                                        </td>
                              <td>
                                <asp:Label ID="lblNroFolio" runat="server"></asp:Label>
                                        <asp:Label ID="lblIdOrgVenta" runat="server" Visible="False"></asp:Label>
                                  <asp:Label ID="lblIdPosicion" runat="server" Visible="False"></asp:Label>
                                        </td>
                          </tr>
                      </table>
                  </td>
              </tr>
              <tr>
                  <td colspan="2">
                                <hr />
                            </td>
              </tr>
              <tr>
                  <td colspan="2">
                                <asp:Panel ID="Panel2" runat="server" Visible="False">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <table width="100%">
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label12" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Cliente:"></asp:Label>
                                                        </td>
                                                        <td colspan="3">
                                                            <asp:Label ID="lblCliente" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label11" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Fecha de Emisión:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblFechaEmision" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label23" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Ref. Embarque:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblReferenciaEmbarque" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            <asp:Label ID="Label26" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Forma de Pago:"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxComboBox ID="cboFormaPago" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                                                <ItemStyle Height="30px" />
                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </LoadingPanelImage>
                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                </LoadingPanelStyle>
                                                                <ButtonStyle Width="20px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label16" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° Motor:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblNroMotor" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label17" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° VIN:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblNroVin" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            <asp:Label ID="Label27" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Entidad Bancaria:"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxComboBox ID="cboEntidadBancaria" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                                                <ItemStyle Height="30px" />
                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </LoadingPanelImage>
                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                </LoadingPanelStyle>
                                                                <ButtonStyle Width="20px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label13" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Modelo:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblModelo" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label20" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° Caja:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblNroCaja" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            <asp:Label ID="Label28" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Endoso:"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxComboBox ID="cboEndoso" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" EncodeHtml="False" Height="30px" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                                                <ItemStyle Height="30px" />
                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </LoadingPanelImage>
                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                </LoadingPanelStyle>
                                                                <ButtonStyle Width="20px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label18" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° Lote:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblNroLote" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label19" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° Pedido:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblNroPedido" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label14" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Cantidad:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblCantidad" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label15" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Total:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblTotal" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 130px">
                                                            <asp:Label ID="Label22" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="Fecha Póliza:"></asp:Label>
                                                        </td>
                                                        <td style="width: 224px">
                                                            <asp:Label ID="lblFechaPoliza" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 111px">
                                                            <asp:Label ID="Label21" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                Text="N° Póliza:"></asp:Label>
                                                        </td>
                                                        <td style="width: 238px">
                                                            <asp:Label ID="lblNroPoliza" runat="server"></asp:Label>
                                                        </td>
                                                        <td style="width: 121px">
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="formato-tabla-td">
                                                <hr />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="formato-tabla-td">
                                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                    <ContentTemplate>
                                                        <asp:Panel ID="Panel3" runat="server">
                                                            <table bgcolor="#D1DFEF" width="100%">
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        &nbsp;</td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        <asp:Label ID="Label8" runat="server" Font-Bold="True" ForeColor="Black" 
                                                                            Text="Seleccione múltiples archivos:"></asp:Label>
                                                                    </td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        <CuteWebUI:Uploader ID="Uploader1" runat="server" CancelAllMsg="Cancelar Todo" 
                                                                            CancelText="Cancelar" CancelUploadMsg="Cancelar" InsertText="Cargar archivos" 
                                                                            MultipleFilesUpload="True" onfileuploaded="Uploader1_FileUploaded" 
                                                                            UploadingMsg="Cargando..." UploadProcessingMsg="Cargando...">
                                                                            <ValidateOption AllowedFileExtensions="jpeg,jpg,gif,png" />
                                                                        </CuteWebUI:Uploader>
                                                                    </td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        <asp:Label ID="Label24" runat="server" ForeColor="#666666" 
                                                                            Text="* Tipo de imágenes permitidas: jpeg, jpg, gif, png"></asp:Label>
                                                                    </td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        <asp:Label ID="Label25" runat="server" ForeColor="#666666" 
                                                                            Text="* Tamaño máximo por archivo: 1Mb "></asp:Label>
                                                                    </td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="main-separator">
                                                                        &nbsp;</td>
                                                                    <td style="width: 331px">
                                                                        &nbsp;</td>
                                                                    <td style="width: 287px">
                                                                        &nbsp;</td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                        <table width="100%">
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxDataView ID="dv" runat="server" AllowPaging="False" ColumnCount="4" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" ItemSpacing="21px" PagerPanelSpacing="0px" 
                                                                RowPerPage="1" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <ItemTemplate>
                                                                    <a href="#" title="">
                                                                    <table width="100%">
                                                                        <tr>
                                                                            <td align="right" height="20">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td align="center" style="width: 196px">
                                                                                            &nbsp;</td>
                                                                                        <td>
                                                                                            <asp:ImageButton ID="ibEliminar" runat="server" 
                                                                                                AlternateText='<%# Bind("ruta") %>' ImageUrl="~/Images/delete.png" 
                                                                                                onclick="ibEliminar_Click" 
                                                                                                onclientclick="if (!confirm('¿Estas seguro de eliminar?')) return false;" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" height="200">
                                                                                <asp:ImageButton ID="ImageButton1" runat="server" Height="150px" 
                                                                                    ImageUrl='<%# Bind("ruta") %>' ToolTip='<%# Bind("Nombre") %>' Width="200px" />
                                                                                <a href="#" title="">&nbsp;</a></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center">
                                                                                <dx:ASPxComboBox ID="cboTipoDocumento" runat="server" 
                                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                                    CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                                                                    <ItemStyle Height="30px" />
                                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                    </LoadingPanelImage>
                                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                                    </LoadingPanelStyle>
                                                                                    <DropDownButton Width="20px">
                                                                                    </DropDownButton>
                                                                                    <ButtonStyle Width="13px">
                                                                                    </ButtonStyle>
                                                                                    <Paddings PaddingLeft="5px" />
                                                                                </dx:ASPxComboBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    </a>
                                                                </ItemTemplate>
                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                                                </LoadingPanelImage>
                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                </LoadingPanelStyle>
                                                                <DisabledStyle ForeColor="#B2B7BD">
                                                                </DisabledStyle>
                                                            </dx:ASPxDataView>
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>

                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="formato-tabla-td">
                                                
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
              </tr>
          </table>
        <table width="100%">
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
            </table>
          <dx:ASPxPopupControl ID="popupConsulta" runat="server" 
              ClientInstanceName="popupConsulta" 
              CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" EnableHotTrack="False" 
              HeaderText="Consultar Facturas" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              AllowDragging="True" CloseAction="CloseButton" Modal="True" 
              PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
              Width="900px">
              <HeaderImage Url="~/Images/search.png">
              </HeaderImage>
              <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
              </LoadingPanelImage>
              <HeaderStyle>
              <Paddings PaddingLeft="7px" />
              </HeaderStyle>
              <LoadingPanelStyle ImageSpacing="5px">
              </LoadingPanelStyle>
              <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
    <table width="100%">
        <tr>
            <td>
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                    GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                    HeaderText="Filtros de Búsqueda" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="900px">
                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                        PaddingTop="10px" />
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <table width="100%">
                                <tr>
                                    <td style="width: 112px">
                                        <asp:Label ID="Label1" runat="server" Text="Oficina de Ventas:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxComboBox ID="cboOficinaVentas" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <DropDownButton Width="20px">
                                            </DropDownButton>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="formato-tabla-td" style="width: 53px">
                                        <asp:Label ID="Label2" runat="server" Text="Año:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxComboBox ID="cboAnio" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="20px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td style="width: 53px">
                                        <asp:Label ID="Label3" runat="server" Text="Mes:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxComboBox ID="cboMes" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" SelectedIndex="0" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                                                <dx:ListEditItem Text="Febrero" Value="2" />
                                                <dx:ListEditItem Text="Marzo" Value="3" />
                                                <dx:ListEditItem Text="Abril" Value="4" />
                                                <dx:ListEditItem Text="Mayo" Value="5" />
                                                <dx:ListEditItem Text="Junio" Value="6" />
                                                <dx:ListEditItem Text="Julio" Value="7" />
                                                <dx:ListEditItem Text="Agosto" Value="8" />
                                                <dx:ListEditItem Text="Setiembre" Value="9" />
                                                <dx:ListEditItem Text="Octubre" Value="10" />
                                                <dx:ListEditItem Text="Noviembre" Value="11" />
                                                <dx:ListEditItem Text="Diciembre" Value="12" />
                                            </Items>
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="20px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 112px">
                                        <asp:Label ID="Label4" runat="server" Text="N° Factura:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxTextBox ID="txtFactura" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="formato-tabla-td" style="width: 53px">
                                        <asp:Label ID="Label5" runat="server" Text="N° Folio:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxTextBox ID="txtFolio" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td style="width: 53px">
                                        <asp:Label ID="Label6" runat="server" Text="Cliente:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxTextBox ID="txtCliente" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 112px">
                                        <asp:Label ID="Label7" runat="server" Text="Modelo:"></asp:Label>
                                    </td>
                                    <td width="155">
                                        <dx:ASPxComboBox ID="cboModelo" runat="server" AutoResizeWithContainer="True" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains" 
                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="150px">
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <DropDownButton Width="20px">
                                            </DropDownButton>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="formato-tabla-td" style="width: 53px">
                                        &nbsp;</td>
                                    <td width="155">
                                        <dx:ASPxButton ID="btnConsultar" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" OnClick="btnConsultar_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                                            Width="100px">
                                            <Image Url="~/Images/search.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td style="width: 53px">
                                        &nbsp;</td>
                                    <td width="155">
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Horizontal" 
                    Width="900px">
                    <dx:ASPxGridView ID="gvFacturas" runat="server" AutoGenerateColumns="False" 
                        Caption="Listado de Facturas" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" Font-Size="7pt" KeyFieldName="NRO_FACTURA" 
                        style="margin-right: 2px">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="N° COMPROBANTE" FieldName="NRO_FACTURA" 
                                ShowInCustomizationForm="True" VisibleIndex="0">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° FOLIO" FieldName="NRO_FOLIO" 
                                ShowInCustomizationForm="True" VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="FECHA EMISION" FieldName="FEC_FACTURA" 
                                ShowInCustomizationForm="True" VisibleIndex="3">
                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="CLIENTE" FieldName="NOM_COMERCIAL" 
                                ShowInCustomizationForm="True" VisibleIndex="4">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="MODELO" FieldName="DES_MODELO" 
                                ShowInCustomizationForm="True" VisibleIndex="5">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="CANTIDAD" FieldName="IMP_CANTIDAD" 
                                ShowInCustomizationForm="True" VisibleIndex="6">
                                <PropertiesTextEdit DisplayFormatString="n2">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="TOTAL" FieldName="IMP_VENTA_SOLES" 
                                ShowInCustomizationForm="True" VisibleIndex="7">
                                <PropertiesTextEdit DisplayFormatString="n2">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° MOTOR" FieldName="NRO_MOTOR" 
                                ShowInCustomizationForm="True" VisibleIndex="8">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° VIN" FieldName="NRO_VIN" 
                                ShowInCustomizationForm="True" VisibleIndex="9">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° LOTE" FieldName="NRO_LOTE" 
                                ShowInCustomizationForm="True" VisibleIndex="10">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° PEDIDO" FieldName="NRO_PEDIDO_SAP" 
                                ShowInCustomizationForm="True" VisibleIndex="11">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° CAJA" FieldName="NRO_CAJA" 
                                ShowInCustomizationForm="True" VisibleIndex="12">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="N° POLIZA" FieldName="NRO_POLIZA" 
                                ShowInCustomizationForm="True" VisibleIndex="13">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="FECHA POLIZA" FieldName="FEC_POLIZA" 
                                ShowInCustomizationForm="True" VisibleIndex="14">
                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="TIPO COMPROBANTE" 
                                FieldName="DES_CLASE_FACTURA" ShowInCustomizationForm="True" VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="REFERENCIA DE EMBARQUE" 
                                FieldName="REF_EMBARQUE" ShowInCustomizationForm="True" VisibleIndex="15">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsBehavior AllowDragDrop="False" AllowFocusedRow="True" 
                            AllowGroup="False" AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True" 
                            AllowSort="False" />
                        <SettingsPager PageSize="20">
                        </SettingsPager>
                        <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="5px">
                            </LoadingPanel>
                        </Styles>
                        <StylesPager>
                            <PageNumber ForeColor="#3E4846">
                            </PageNumber>
                            <Summary ForeColor="#1E395B">
                            </Summary>
                        </StylesPager>
                        <StylesEditors ButtonEditCellSpacing="0">
                            <ProgressBar Height="21px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <dx:ASPxButton ID="btnAceptar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" OnClick="btnAceptar_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                    Width="100px">
                    <Image Url="~/Images/ico-done.gif">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
                  </dx:PopupControlContentControl>
</ContentCollection>
          </dx:ASPxPopupControl>

          <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupErrores" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="300px" EnableHotTrack="False">
                
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center" valign="middle">
                        
                        
                        
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                            <br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td align="center">
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                        
                            <dx:ASPxButton ID="ASPxButton6" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
    </div>
</asp:Content>
